package com.namecard.namecardapi.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class TComment {
    private static final long serialVersionUID = 1L;
    private Long id;
    private Long commodityId;  //商品id
    private String userName;//评论人id
    private String content;//评论内容
    private Date createTime;//创建时间

    @TableField(exist = false)
    private String headUrl;
    @TableLogic
    private Integer isDeleted;//逻辑删除

    @TableField(exist = false)
    private String tradeName;

}
